package com.yigo.cuc.domain.customer.repo;

import com.yigo.cuc.domain.customer.aggregateroot.Customer;
import lombok.NonNull;

import java.io.Serializable;

public interface CustomerRepo {

    Long countByUserNameOrEmailOrPhone(@NonNull String userName,@NonNull  String email,@NonNull  String phone);

    Customer save(@NonNull Customer customer);

    Customer findById(@NonNull Serializable id);
}
